# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     day102_ptqt5_appIcon
   Description :
   Author :       fuml
   date：          2019/9/20
-------------------------------------------------
   Change Activity:
                   2019/9/20: set icon for an application
-------------------------------------------------
"""
import  sys
from PyQt5.QtWidgets import (QWidget,QApplication)
from PyQt5.QtGui import QIcon

class Example(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        #set gemotry
        self.setGeometry(300,300,300,200)
        self.setWindowTitle('this is a title')
        self.setWindowIcon(QIcon('web.png'))


        self.show()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex=Example()
    sys.exit(app.exec_())